// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'AlertId',
        footer: "Foots",
        cnName: '库存预警',
        name: 'inventoryalert',
        url: "/inventoryalert/",
        sortName: "AlertId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductId":"","ProductName":"","Specifications":"","UnitName":"","WarehouseId":"","StoragebayId":"","LocationId":"","BufferStock":"","MaximumStock":""};
    const editFormOptions = [[{"title":"产品编号","required":true,"field":"ProductId","type":"text"},
                               {"title":"产品名称","required":true,"field":"ProductName","type":"text"},
                               {"dataKey":"规格型号","data":[],"title":"规格型号","required":true,"field":"Specifications","type":"select"}],
                              [{"dataKey":"单位","data":[],"title":"单位","required":true,"field":"UnitName","type":"select"},
                               {"dataKey":"仓库建模","data":[],"title":"仓库编号","required":true,"field":"WarehouseId","type":"select","url":"/warehousemodelling/","key":"WarehouseNumber","value":"WarehouseName"},
                               {"dataKey":"库区建模","data":[],"title":"库区编号","required":true,"field":"StoragebayId","type":"select"}],
                              [{"dataKey":"库位建模","data":[],"title":"库位编号","required":true,"field":"LocationId","type":"select"},
                               {"title":"安全库存","required":true,"field":"BufferStock","type":"text"},
                               {"title":"最高库存","required":true,"field":"MaximumStock","type":"text"}]];
    const searchFormFields = {"ProductId":"","ProductName":"","Specifications":"","UnitName":"","WarehouseId":"","StoragebayId":""};
    const searchFormOptions = [[{"title":"产品编号","field":"ProductId","type":"like"},{"title":"产品名称","field":"ProductName","type":"like"},{"dataKey":"规格型号","data":[],"title":"规格型号","field":"Specifications","type":"="}],[{"dataKey":"单位","data":[],"title":"单位","field":"UnitName","type":"="}],[{"dataKey":"仓库建模","data":[],"title":"仓库编号","field":"WarehouseId","type":"="},{"dataKey":"库区建模","data":[],"title":"库区编号","field":"StoragebayId","type":"number"}]];
    const columns = [{field:'AlertId',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductId',title:'产品编号',type:'int',width:110,require:true,align:'left',sort:true},
                       {field:'ProductName',title:'产品名称',type:'string',width:120,require:true,align:'left'},
                       {field:'Specifications',title:'规格型号',type:'int',bind:{ key:'规格型号',data:[]},width:110,require:true,align:'left'},
                       {field:'UnitName',title:'单位',type:'int',bind:{ key:'单位',data:[]},width:110,require:true,align:'left'},
                       {field:'WarehouseId',title:'仓库编号',type:'int',bind:{ key:'仓库建模',data:[]},width:110,require:true,align:'left'},
                       {field:'StoragebayId',title:'库区编号',type:'int',bind:{ key:'库区建模',data:[]},width:110,require:true,align:'left'},
                       {field:'LocationId',title:'库位编号',type:'int',bind:{ key:'库位建模',data:[]},width:110,require:true,align:'left'},
                       {field:'BufferStock',title:'安全库存',type:'int',width:110,require:true,align:'left'},
                       {field:'MaximumStock',title:'最高库存',type:'int',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}